
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>后台管理</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>

<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <div class="page-header">
                <h1>
                    这是我的 <small>后台管理</small>
                </h1>
            </div>
            <table class="table table-hover table-bordered">
                <thead>
                <tr>
                    <th>
                        ID
                    </th>
                    <th>
                        标题
                    </th>
                    <th>
                        作者
                    </th>
                    <th>
                        发布时间
                    </th>
                    <th>
                        状态
                    </th>
                    <th>
                        编辑
                    </th>
                </tr>
                </thead>
                {volist name="data" id="vo"}
                <tbody>
                <tr>
                    <td>
                        {$vo.id}
                    </td>
                    <td>
                        {$vo.title}
                    </td>
                    <td>
                        {$vo.user_id}
                    </td>
                    <td>
                        {$vo.create_time}
                    </td>
                    <td>
                        <a href="{:url('index/status', ['id'=>$vo.id ,'status'=>$vo.status==1?0:1])}" title="点击修改状态">
                            {$vo.status|status|raw}
                        </a>

                    </td>
                    <td>
                            <a href="{:url('index/edit',['id'=>$vo.id])}" ><button type="button" class="btn btn-info">信息</button></a>
                    </td>
                </tr>
                </tbody>
                {/volist}
            </table>

        </div>
    </div>
</div>
<div class="col-md-12 column">{$data->render()|raw}</div>
</body>


</html>

